@extends('layouts.home')

@section('content')
<!-- 党建工作 社会动态 近期活动 -->
<div class="wrap index_context_1">
		<div class="box">
			<div class="box_in">
				<div class="title">
					<h2>党建工作</h2>
					<a class="more" href="{{url('work')}}?type=work">更多</a>
				</div>
				
				@if ($works != '[]')
				<dl>
					<dt><img src="{{ asset($works[0]->img) }}" alt=""></dt>
					<dd>
						<a href="{{ route('article_detail',['article'=>$works[0]->id,'action'=>'work']) }}"><h3>{{ $works[0]->title }}</h3></a>
						<p>{!! strip_tags($works[0]->content) !!}</p>
					</dd>
				</dl>
				@endif
				<ul>
					@foreach($works as $key => $word)
					@if ($key == 0)
					@else
					<li>
						<a href="{{ route('article_detail',['article'=>$word->id,'action'=>'work']) }}">
							<h3 class="news_title">{{ $word->title }}</h3>
							<p>{!! strip_tags($word->content) !!}</p>
						</a>
					</li>
					@endif
					@endforeach
				</ul>
			</div>
		</div>
		<div class="box box_b">
			<div class="box_in tabSlider">
				<div class="hd">
					<a href="{{url('information')}}?type=news" class="more">更多</a>
					<ul>
						<li data-type="news" class="on">社会动态</li>
						<li data-type="notice">通知公告</li>
						<li data-type="policy">政策法规</li>
						<li data-type="info">行业资讯</li>
					</ul>
				</div>
				<div class="bd">
					<div class="item show">
						@if ($societys != '[]')
						<dl>
							<dt><img src="{{ asset($societys[0]->img) }}" alt=""></dt>
							<dd>
								<a href="{{ route('article_detail',['article'=>$societys[0]->id,'action'=>'information']) }}"><h3>{{ $societys[0]->title }}</h3></a>
								<p>{!! strip_tags($societys[0]->content) !!}</p>
							</dd>
						</dl>
						@endif
						<ul>
						@foreach($societys as $key => $society)
						@if ($key == 0)
						@else
						<li>
							<a href="{{ route('article_detail',['article'=>$society->id,'action'=>'information']) }}"><em></em><h3>{{ mb_substr($society->title,0,31) }}</h3></a>
						</li>
						@endif
						@endforeach
						</ul>
					</div>
					<div class="item">
						@if ($notices != '[]')
						<dl>
							<dt><img src="{{ asset($notices[0]->img) }}" alt=""></dt>
							<dd>
								<a href="{{ route('article_detail',['article'=>$notices[0]->id,'action'=>'information']) }}"><h3>{{ $notices[0]->title }}</h3></a>
								<p>{!! strip_tags($notices[0]->content) !!}</p>
							</dd>
						</dl>
						@endif
						<ul>
							@foreach($notices as $key => $notice)
							@if ($key == 0)
							@else
							<li>
								<a href="{{ route('article_detail',['article'=>$notice->id,'action'=>'information']) }}"><em></em><h3>{{ mb_substr($notice->title,0,31) }}</h3></a>
							</li>
							@endif
							@endforeach
						</ul>
					</div>
					<div class="item">
						@if ($policys != '[]')
						<dl>
							<dt><img src="{{ asset($policys[0]->img) }}" alt=""></dt>
							<dd>
								<a href="{{ route('article_detail',['article'=>$policys[0]->id,'action'=>'information']) }}"><h3>{{ $policys[0]->title }}</h3></a>
								<p>{!! strip_tags($policys[0]->content) !!}</p>
							</dd>
						</dl>
						@endif
						<ul>
							@foreach($policys as $key => $policy)
							@if ($key == 0)
							@else
							<li>
								<a href="{{ route('article_detail',['article'=>$policy->id,'action'=>'information']) }}"><em></em><h3>{{ mb_substr($policy->title,0,31) }}</h3></a>
							</li>
							@endif
							@endforeach
						</ul>
					</div>
					<div class="item">
						@if ($informations != '[]')
						<dl>
							<dt><img src="{{ asset($informations[0]->img) }}" alt=""></dt>
							<dd>
								<a href="{{ route('article_detail',['article'=>$informations[0]->id,'action'=>'information']) }}"><h3>{{ $informations[0]->title }}</h3></a>
								<p>{!! strip_tags($informations[0]->content) !!}</p>
							</dd>
						</dl>
						@endif
						<ul>
							@foreach($informations as $key => $information)
							@if ($key == 0)
							@else
							<li>
								<a href="{{ route('article_detail',['article'=>$information->id,'action'=>'information']) }}"><em></em><h3>{{ mb_substr($information->title,0,31) }}</h3></a>
							</li>
							@endif
							@endforeach
						</ul>
					</div>
				</div>
			</div>
		</div>
		<div class="box box_c">
			<div class="box_in">
				<div class="title">
					<h2>近期活动</h2>
					<a class="more" href="{{url('member_service')}}">更多</a>
				</div>
				@if ($activitys != '[]')
				<dl>
					<dt><img src="{{ asset($activitys[0]->img) }}" alt=""></dt>
					<dd>
						<a href="{{ route('article_detail',['article'=>$activitys[0]->id,'action'=>'member_service']) }}"><h3>{{ $activitys[0]->title }}</h3></a>
						<p>{!! strip_tags($activitys[0]->content) !!}</p>
					</dd>
				</dl>
				@endif
				<div id="listWrap">
					<ul>
					@foreach($activitys as $key => $activity)
					@if ($key == 0)
					@else
					<li>
						<a href="{{ route('article_detail',['article'=>$activity->id,'action'=>'member_service']) }}">
							<h3 class="news_title">{{ $activity->title }}</h3>
							<p>{!! strip_tags($activity->content) !!}</p>
						</a>
					</li>
					@endif
					@endforeach
					</ul>
				</div>
			</div>
		</div>

	</div>

<!-- 广告图片 -->
<div class="index_context_2"><img src="{{ asset('home/images/index_ad.jpg') }}" alt=""></div>

<!-- 会员服务 粤人刊 在线会员入口 -->
<div class="wrap index_context_3">
	<div class="box_left">
		<div class="box_in">
			<div class="title">
				<h2>会员服务</h2>
			</div>
			<div class="inner_box">
				<div class="inner tabSlider">
					<div class="sub_title hd">
						<ul>
							<li data-type="education" class="on">教育培训</li>
							<li data-type="forum">峰会论坛</li>
						</ul>
						<a class="more" href="{{url('member_service')}}?type=education">更多</a>
					</div>
					<div class="bd">
						<div class="item show">
							@if ($item1 != '[]')
							<div class="poster"><img width="416" height="195" src="{{ asset($item1[0]->img) }}" alt=""></div>
							@endif
							<ul class="news_list">
								@foreach($item1 as $key => $item)
								<li>
									<p class="date">{{ \Carbon\Carbon::parse($item->created_at)->format('m/d') }}</p>
									<a href="{{ route('article_detail',['article'=>$item->id,'action'=>'member_service']) }}">{{ mb_substr($item->title,0,54) }}</a>
								</li>
								@endforeach
							</ul>
						</div>
						<div class="item">
							@if ($item6 != '[]')
							<div class="poster"><img width="416" height="195" src="{{ asset($item6[0]->img) }}" alt=""></div>
							@endif
							<ul class="news_list">
								@foreach($item6 as $key => $item)
								<li>
									<p class="date">{{ \Carbon\Carbon::parse($item->created_at)->format('m/d') }}</p>
									<a href="{{ route('article_detail',['article'=>$item->id,'action'=>'member_service']) }}">{{ mb_substr($item->title,0,54) }}</a>
								</li>
								@endforeach
							</ul>
						</div>
					</div>
				</div>
				<div class="inner tabSlider">
					<div class="sub_title hd">
						<ul>
							<li data-type="visit" class="on">企业走访</li>
							<li data-type="welfareActivity">公益活动</li>
						</ul>
						<a class="more" href="{{url('member_service')}}?type=visit">更多</a>
					</div>
					<div class="bd">
						<div class="item show">
							@if ($item2 != '[]')
							<div class="poster"><img width="416" height="195" src="{{ asset($item2[0]->img) }}" alt=""></div>
							@endif
							<ul class="news_list">
								@foreach($item2 as $key => $item)
								<li>
									<p class="date">{{ \Carbon\Carbon::parse($item->created_at)->format('m/d') }}</p>
									<a href="{{ route('article_detail',['article'=>$item->id,'action'=>'member_service']) }}">{{ mb_substr($item->title,0,54) }}</a>
								</li>
								@endforeach
							</ul>
						</div>
						<div class="item">
							@if ($item7 != '[]')
							<div class="poster"><img width="416" height="195" src="{{ asset($item7[0]->img) }}" alt=""></div>
							@endif
							<ul class="news_list">
								@foreach($item7 as $key => $item)
								<li>
									<p class="date">{{ \Carbon\Carbon::parse($item->created_at)->format('m/d') }}</p>
									<a href="{{ route('article_detail',['article'=>$item->id,'action'=>'member_service']) }}">{{ mb_substr($item->title,0,54) }}</a>
								</li>
								@endforeach
							</ul>
						</div>
					</div>
				</div>
				<div class="inner">
					<div class="sub_title">
						<h3 class="main">省人协说法</h3>
						<a class="more" href="{{url('member_service')}}?type=statement">更多</a>
					</div>
					@if ($item3 != '[]')
					<div class="poster"><img width="416" height="195" src="{{ asset($item3[0]->img) }}" alt=""></div>
					@endif
					<ul class="news_list">
						@foreach($item3 as $key => $item)
						<li>
							<p class="date">{{ \Carbon\Carbon::parse($item->created_at)->format('m/d') }}</p>
							<a href="{{ route('article_detail',['article'=>$item->id,'action'=>'member_service']) }}">{{ mb_substr($item->title,0,54) }}</a>
						</li>
						@endforeach
					</ul>
				</div>
				<div class="inner">
					<div class="sub_title">
						<h3 class="main">HR智库</h3>
						<a class="more" href="{{url('member_service')}}?type=HR">更多</a>
					</div>
					@if ($item4 != '[]')
					<div class="poster"><img width="416" height="195" src="{{ asset($item4[0]->img) }}" alt=""></div>
					@endif
					<ul class="news_list">
						@foreach($item4 as $key => $item)
						<li>
							<p class="date">{{ \Carbon\Carbon::parse($item->created_at)->format('m/d') }}</p>
							<a href="{{ route('article_detail',['article'=>$item->id,'action'=>'member_service']) }}">{{ mb_substr($item->title,0,54) }}</a>
						</li>
						@endforeach
					</ul>
				</div>
			</div>
		</div>
	</div>
	<div class="box_right">
		<div class="inner_box2 box_in">
			<div class="title">
				<h2>《粤人刊》</h2>
			</div>
			<a href="{{url('information')}}?type=public">
				<p class="img"><img src="/photos/1/index_cantonese journal.jpg" alt=""></p>
				<p class="news_title">敬请期待</p>
			</a>
		</div>

		<div class="inner_box3 box_in">
			<div class="title">
				<h2>在线入会入口</h2>
			</div>
			<a href="{{url('apply')}}?type=download">
				<p class="img"><img src="{{ asset('home/images/index_context_3_apply.jpg') }}" alt=""></p>
			</a>
		</div>
	</div>
</div>

<!-- 服务快车道 -->
<div class="index_context_4 wrap">
	<div class="box_in">
		<div class="title">
			<h2>服务快车道</h2>
		</div>
		<ul class="list">
			<li>
				<a href="">
					<p class="ico"><img src="{{ asset('home/images/icon/ico_1.png') }}" alt=""></p>
					<p>表格下载</p>
				</a>
			</li>
			<li>
				<a href="">
					<p class="ico"><img src="{{ asset('home/images/icon/ico_2.png') }}" alt=""></p>
					<p>报名入口</p>
				</a>
			</li>
			<li>
				<a href="">
					<p class="ico"><img src="{{ asset('home/images/icon/ico_3.png') }}" alt=""></p>
					<p>法务咨询</p>
				</a>
			</li>
			<li>
				<a href="">
					<p class="ico"><img src="{{ asset('home/images/icon/ico_4.png') }}" alt=""></p>
					<p>行业调查</p>
				</a>
			</li>
			<li>
				<a href="">
					<p class="ico"><img src="{{ asset('home/images/icon/ico_5.png') }}" alt=""></p>
					<p>管理咨询</p>
				</a>
			</li>
			<li>
				<a href="{{url('message')}}?type=message">
					<p class="ico"><img src="{{ asset('home/images/icon/ico_6.png') }}" alt=""></p>
					<p>留言咨询</p>
				</a>
			</li>

		</ul>

	</div>
</div>

<!-- 会员风采  招贤纳士  优秀会员单位 -->
<div class="wrap index_context_5">
	<div class="box">
		<div class="box_in">
			<div class="title">
				<h2>会员风采</h2>
				<a class="more" href="{{url('member_exchange')}}?type=memberInfo">更多</a>
			</div>
			<div class="inner">
				<img src="{{ asset('home/images/index_context_5_member.jpg') }}" alt="">
			</div>
		</div>
	</div>
	<div class="box box_c">
		<div class="box_in">
			<div class="title">
				<h2>招贤纳士</h2>
				<a class="more" href="{{url('member_exchange')}}?type=careers">更多</a>
			</div>
			<ul class="inner">
				@foreach($item5 as $key => $item)
				<li>
					<p class="date">{{ \Carbon\Carbon::parse($item->created_at)->format('m/d') }}</p>
					<a href="{{ route('article_detail',['article'=>$item->id,'action'=>'member_exchange']) }}">{{ mb_substr($item->title,0,27) }}</a>
				</li>
				@endforeach
			</ul>
		</div>
	</div>
	<div class="box box_r">
		<div class="box_in">
			<div class="title">
				<h2>优秀会员单位</h2>
				<a class="more" href="{{url('member_exchange')}}?type=excellentUnit">更多</a>
			</div>
			<div class="inner">
					<img src="/photos/1/work_person.png" alt="">
			</div>
		</div>
	</div>
</div>

<!-- 友情链接 -->
<div class="index_context_6">
	<div class="wrap">
		<div class="title"><h2>友情链接</h2></div>
		<ul>
			<li><a href="">广州粤明人力资源有限公司</a></li>
			<li><a href="">广东省人才服务局</a></li>
			<li><a href="">港联物业（广州）有限公司</a></li>
			<li><a href="">深圳市谋事精益信息咨询</a></li>
			<li><a href="">广州粤明人力资源有限公司</a></li>
			<li><a href="">广东省人才服务局</a></li>
			<li><a href="">港联物业（广州）有限公司</a></li>
			<li><a href="">深圳市谋事精益信息咨询</a></li>
			<li><a href="">广州粤明人力资源有限公司</a></li>
			<li><a href="">广东省人才服务局</a></li>
			<li><a href="">港联物业（广州）有限公司</a></li>
			<li><a href="">深圳市谋事精益信息咨询</a></li>
			<li><a href="">广州粤明人力资源有限公司</a></li>
			<li><a href="">广东省人才服务局</a></li>
			<li><a href="">港联物业（广州）有限公司</a></li>
			<li><a href="">深圳市谋事精益信息咨询</a></li>

		</ul>

	</div>
</div>

<!-- 公共尾部 start -->
<div class="footer">
	<div class="wrap box">
		<ul class="footer_nav">
			<li><a href="">关于我们</a></li>
			<li><a href="">法律声明</a></li>
			<li><a href="">隐私条款</a></li>
			<li><a href="">版权声明</a></li>
			<li><a href="">人才招聘</a></li>
			<li><a href="">联系我们</a></li>
		</ul>
		<div class="inner">
			<div class="left">
				<p>主办方单位/版权所有：广东省人力资源管理协会</p>
				<p>备案号/经营许可证：粤ICP备18106532号</p>
				<p>
					<i class="iconfont">&#xe60a;</i>
					<span>广东省广州市海珠区琶洲大道83号宝地广场</span>
				</p>
				<p>
					<i class="iconfont">&#xe627;</i>
					<span>020-89114856</span>
				</p>
				<p>
					<i class="iconfont">&#xe62b;</i>
					<span>周一至周五9:00-18:00</span>
				</p>
			</div>
			<div class="right">
				<div class="code">
					<img src="{{ asset('home/images/code.jpg') }}" alt="">
					<p>官方订阅号</p>
				</div>
				<div class="code">
					<img src="{{ asset('home/images/code.jpg') }}" alt="">
					<p>官方服务号</p>
				</div>
			</div>
		</div>
	</div>

</div>
<!-- 公共尾部 end -->
@endsection